{% extends "admin/common.html" %}
{% block content %}

<form  align="left"  method="post" action="">
   <table width="94%"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FFFFFF">
     <tr>
        <td align="right">&nbsp;</td>
        <td height="10" colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
     </tr>
     <tr>
        <td width="15%" height="10" align="left">{{form.search_creater(placeholder='请输入硬件设备名称',class_='form-control')}}</td>
        <td width="80%" height="10"  align="left">{{form.csrf_token}}
         {{form.submit(class_='btn btn-success')}}
        </td>
     </tr>
  </table>
</form>
<table width="1280" height="288"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td align="center" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="29" align="right">&nbsp;</td>
        <td width="10" background="{{url_for('static',filename='admin/images/manage_leftTitle_left.GIF')}}">&nbsp;</td>
        <td width="100%" align="center" background="{{url_for('static',filename='admin/images/manage_leftTitle_mid.gif')}}" class="word_white">
            <b>日志评审</b>
        </td>
        <td width="10" background="{{url_for('static',filename='admin/images/manage_leftTitle_right.gif')}}">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
      <table width="99%" height="60"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"> <table width="100%" height="14"  border="0" cellpadding="0" cellspacing="0"> </table>
            <table width="100%" height="30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#E6E6E6">
              <tr bgcolor="#eeeeee">
                <td height="24" align="center">日志名称</td>
                <td height="24" align="center">上传时间</td>
                <td height="24" align="center">删除</td>
                <td height="24" align="center">评审</td>
              </tr>
                {% for job in page_data.items %}
                      <tr style="padding:5px;">
                          <td width="40%" height="20" align="center">{{ job.job_name }}</td>
                          <td width="20%" height="20" align="center">{{ job.upload_time }}</td>
                          <td width="20%"align="center">
                              <a onclick="return window.confirm('您想删除吗?');"
				 href={{ url_for("admin.job_del", hardware_id=job.hardware_id,task_id=job.task_id, job_name=job.job_name) }}>
                                  <img src="/static/admin/images/del.gif" width="20" height="20"></a>
                          </td>
                          <td width="20%" align="center"><a
                            href={{url_for("admin.get_job_detail",manu=manu_id, hardware=hardware_id, taskid=task_id,job_name=job.job_name)}}>评审</a>
                          </td>
                      </tr>
              {% endfor %}
            </table>

          {% if page_data %}
          <tbody>
             <tr>
               <td height="30" align="right">
                 当前页数：[{{ page_data.page }}/{{ page_data.pages }}]&nbsp;
                 <a href="{{ url_for('admin.get_logs', manu_id=manu_id, hardware_id=hardware_id,taskid=task_id, page=1) }}">第一页</a>
                 {% if page_data.has_prev %}
                 <a href="{{ url_for('admin.get_logs',manu_id=manu_id, hardware_id=hardware_id,taskid=task_id,page=page_data.page-1) }}">上一页</a>
                 {% endif %}
                 {% if page_data.has_next %} 　
                 <a href="{{ url_for('admin.get_logs',manu_id=manu_id, hardware_id=hardware_id,taskid=task_id, page=page_data.page+1) }}">下一页</a>
                 {% endif %}　
                 <a href="{{ url_for('admin.get_logs',manu_id=manu_id, hardware_id=hardware_id,taskid=task_id, page=pages) }}">最后一页&nbsp;</a>
               </td>
             </tr>
          </tbody>
        {% endif %}
          </td>
        </tr>
      </table>
</td>

{% endblock %}
